import request from '@/utils/request'

/**
 * 批量发货物码分页查询
 * @param {查询条件} data
 */
export function listBatchshipdetail(query) {
  return request({
    url: 'batch/Batchshipdetail/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增批量发货物码
 * @param data
 */
export function addBatchshipdetail(data) {
  return request({
    url: 'batch/Batchshipdetail',
    method: 'post',
    data: data,
  })
}
/**
 * 修改批量发货物码
 * @param data
 */
export function updateBatchshipdetail(data) {
  return request({
    url: 'batch/Batchshipdetail',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取批量发货物码详情
 * @param {Id}
 */
export function getBatchshipdetail(id) {
  return request({
    url: 'batch/Batchshipdetail/' + id,
    method: 'get'
  })
}

/**
 * 删除批量发货物码
 * @param {主键} pid
 */
export function delBatchshipdetail(pid) {
  return request({
    url: 'batch/Batchshipdetail/delete/' + pid,
    method: 'POST'
  })
}
